/**
 * @copyright 2017 sinping.com 北京芯平科技股份有限公司. All rights reserved.
 * 本内容仅限于北京芯平科技股份有限公司内部传阅，禁止外泄以及用于其他的商业目的.
 */
package com.sinping.qh.dto.auth;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @author guojie
 * @create 2017/12/28
 */
public class UserAndResDTO {

    @JsonProperty(value = "user_info")
    private UserDTO userInfo;
    @JsonProperty(value = "resources")
    private List<ResourceDTO> resourceDTOList = new ArrayList<>();


    public UserDTO getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserDTO userInfo) {
        this.userInfo = userInfo;
    }

    public List<ResourceDTO> getResourceDTOList() {
        return resourceDTOList;
    }

    public void setResourceDTOList(List<ResourceDTO> resourceDTOList) {
        this.resourceDTOList = resourceDTOList;
    }

    public UserAndResDTO(UserDTO userInfo, List<ResourceDTO> resourceDTOList) {
        this.userInfo = userInfo;
        this.resourceDTOList = resourceDTOList;
    }

    public UserAndResDTO() {
    }
}
